package com.zhuiyun.project.api.venuemanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.system.user.entity.TenantUser;
import com.zhuiyun.project.api.system.user.entity.SysUserRole;
import com.zhuiyun.project.api.venuemanagement.entity.BanRecord;
import com.zhuiyun.project.api.venuemanagement.entity.SysDept;
import com.zhuiyun.project.api.venuemanagement.entity.SysUser;
import com.zhuiyun.project.api.venuemanagement.entity.VenueManagement;
import com.zhuiyun.project.api.venuemanagement.model.SelectSubordinateModel;
import com.zhuiyun.project.api.venuemanagement.model.VenueSelectModel;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName CoachManagementMapper
 * @Description TODO
 * @Author wuwan
 * @Date 2023/11/2 13:40
 **/
@Mapper
public interface VenueManagementMapper extends BaseMapper<VenueManagement> {

    /*
     * @Author wuwan
     * @Description 修改场馆
     * @Date 2023/11/3 14:16
     * @Return
     */
    Integer updateVenue(VenueManagement venueManagement);
    /*
    * @Author wuwan
    * @Description 场馆信息分页查询
    * @Date 2023/11/3 14:15
    * @Return
    */
    List<VenueSelectModel> selectVenue(String userName, String phone);
    /*
    * @Author wuwan
    * @Description 场馆封号
    * @Date 2023/11/6 11:02
    * @Return
    */
    Integer changeUserStatus(BanRecord banRecord);
//    /*
//    * @Author wuwan
//    * @Description 角色表自动添加
//    * @Date 2023/11/7 9:06
//    * @Return
//    */
//    Integer addSysUserRole(SysUserRole sysUserRole);
    /*
    * @Author wuwan
    * @Description 查询场馆信息
    * @Date 2023/12/5 20:11
    * @Return
    */
    List<VenueManagement> selectById(PageRequest pageRequest, String id);
    /*
    * @Author wuwan
    * @Description 查询场馆唯一标识
    * @Date 2023/12/5 20:11
    * @Return
    */
    SelectSubordinateModel selectDirectorIdcard(Integer id);
    /*
    * @Author wuwan
    * @Description 查询场馆id
    * @Date 2023/12/5 20:11
    * @Return
    */
    List<SelectSubordinateModel> selectsubordinate(String venueDirectorIdcard);
    /*
    * @Author wuwan
    * @Description 查询场馆下的账号数量
    * @Date 2023/12/5 19:45
    * @Return
    */
//    VenueSelectModel selectAccountCount(String venueDirectorIdcard);
    /*
    * @Author wuwan
    * @Description 查询场馆下的教练数量
    * @Date 2023/12/5 19:45
    * @Return
    */

//    VenueSelectModel selectCoachCount(String venueDirectorIdcard);

    /*
    * @Author wuwan
    * @Description 统计场馆下学员数量
    * @Date 2023/12/5 19:46
    * @Return
    */
//    VenueSelectModel selectUserCount(String venueDirectorIdcard);

    Integer updateSysUser(SysUser tenantUser);
    /*
    * @Author wuwan
    * @Description 向用户封禁记录表进行添加
    * @Date 2023/12/6 16:32
    * @Return
    */
    Integer addBanRecord(BanRecord banRecord);
    /*
    * @Author wuwan
    * @Description 填充解封时间
    * @Date 2023/12/6 16:33
    * @Return
    */
    Integer addByTime(BanRecord banRecord);
}

